<!DOCTYPE HTML>
<html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script async id="script" src="resources/script-slow1.pl"></script>
<script>
async_test(t => { t.step_timeout(() => t.done(), 3000); },
           "Moving a script to a createDocument()ed Document " +
           "during fetch shouldn't crash");
const doc = document.implementation.createDocument("", null);
doc.appendChild(document.getElementById("script"));
</script>
